package com.design.strategy.demo.classadappter;

public class PowerAdatper extends AC220 implements DC5 {
    @Override
    public int output5V() {
        int adapterInput = super.outputAC220V();
        int adapterOut = adapterInput / 44;
        System.out.println("使用Adapter输出AC" + adapterInput + "V,输出DC" + adapterOut + "V");

        return adapterOut;
    }
}
